package com.jhgsys.internal.workflow.service;

import com.jhgsys.internal.workflow.entity.WorkflowNodeTransCondition;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 流程节点流向条件 Service接口
 *
 * @author fenghaijun
 * @date 2024-07-19 09:56:38
 */
public interface IWorkflowNodeTransConditionService extends IService<WorkflowNodeTransCondition> {
    /**
     * 查询（分页）
     * @author fenghaijun
     * @date 2024-07-19 09:56:38
     * @param request QueryRequest
     * @param workflowNodeTransCondition workflowNodeTransCondition
     * @return IPage<WorkflowNodeTransCondition>
     */
    IPage<WorkflowNodeTransCondition> findWorkflowNodeTransConditions(QueryRequest request, WorkflowNodeTransCondition workflowNodeTransCondition);

    /**
     * 查询（所有）
     * @author fenghaijun
     * @date 2024-07-19 09:56:38
     * @param workflowNodeTransCondition workflowNodeTransCondition
     * @return List<WorkflowNodeTransCondition>
     */
    List<WorkflowNodeTransCondition> findWorkflowNodeTransConditions(WorkflowNodeTransCondition workflowNodeTransCondition);

    /**
    * 根据ID查询
    * @author fenghaijun
    * @date 2024-07-19 09:56:38
    * @param id
    * @return WorkflowNodeTransCondition
    */
    WorkflowNodeTransCondition findWorkflowNodeTransConditionById(String id);

    /**
     * 新增
     * @author fenghaijun
     * @date 2024-07-19 09:56:38
     * @param workflowNodeTransCondition workflowNodeTransCondition
     */
    void createWorkflowNodeTransCondition(WorkflowNodeTransCondition workflowNodeTransCondition);

    /**
     * 修改
     * @author fenghaijun
     * @date 2024-07-19 09:56:38
     * @param workflowNodeTransCondition workflowNodeTransCondition
     */
    void updateWorkflowNodeTransCondition(WorkflowNodeTransCondition workflowNodeTransCondition);

    /**
     * 逻辑删除
     * @author fenghaijun
     * @date 2024-07-19 09:56:38
     * @param workflowNodeTransCondition workflowNodeTransCondition
     * @param workflowNodeTransConditionIds workflowNodeTransConditionIds
     */
    void deleteWorkflowNodeTransCondition(WorkflowNodeTransCondition workflowNodeTransCondition,String workflowNodeTransConditionIds);

    /**
    * 物理删除
    * @author fenghaijun
    * @date 2024-07-19 09:56:38
    * @param workflowNodeTransConditionIds workflowNodeTransConditionIds
    */
    void physicallyDeleteWorkflowNodeTransCondition(String workflowNodeTransConditionIds);
}
